#region Imports
using System.Collections.Specialized;
using System.ComponentModel;
#endregion

namespace ClipboardCapture.Views.ViewModels
{
    public class BaseViewModel : INotifyPropertyChanged, INotifyCollectionChanged
    {
        #region Declarations
        public event PropertyChangedEventHandler PropertyChanged;
        public event NotifyCollectionChangedEventHandler CollectionChanged;
        #endregion

        public void RaisePropertyChanged(string propertyname)
        {
            if (this.PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyname));
            }
        }

        //public void RaiseCollectionChanged(NotifyCollectionChangedAction action)
        //{
        //    if (this.PropertyChanged != null)
        //    {
        //        CollectionChanged(this, new NotifyCollectionChangedEventArgs(action));
        //    }
        //}
    }
}
